package com.fm.common.base

import android.app.Application
import com.blankj.utilcode.util.AppUtils
import com.blankj.utilcode.util.LogUtils
import com.blankj.utilcode.util.Utils

/**
 * @CreateData:     2019/11/26 16:47
 * @E-Mail:         709674174@qq.com
 * @Author:         lyy
 * @Description:    类描述
 */
abstract class CommonApplication : Application() {

    override fun onCreate() {
        super.onCreate()
        initUtilCode()
    }

    private fun initUtilCode() {
        Utils.init(this)
        LogUtils.getConfig().setLogSwitch(AppUtils.isAppDebug())
            .globalTag = Global.LOG_UTILS_TAG
        /* .setLogHeadSwitch(AppUtils.isAppDebug())
            .setBorderSwitch(AppUtils.isAppDebug()) */
    }
}